package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

/**
 * @author RJ
 * @date 2022/9/13 16:19
 */
/*
    事件记录
 */
@TableName("thing_info")
public class ThingBean {
    //事件id
    @TableId(value = "thing_id", type = IdType.AUTO)
    private Integer thingId;
    //事件名称
    @TableField("thing_name")
    private String thingName;
    //灾区图片
    @TableField("thing_pic")
    private String thingPic;
    //时间
    @TableField("thing_date")
    private LocalDate thingDate = LocalDate.now();
    //灾害类型
    @TableField("thing_type")
    private String thingType;
    //灾情阶段
    @TableField("thing_stage")
    private String thingStage;
    //灾情描述
    @TableField("thing_description")
    private String thingDescription;
    //发现途径
    @TableField("thing_channel")
    private String thingChannel;
    //发生位置
    @TableField("area_name")
    private String areaName;
    //负责小班
    @TableField("class_name")
    private String className;
    //初步损失
    @TableField("thing_loss")
    private String thingLoss;
    //影响面积
    @TableField("thing_area")
    private String thingArea;
    //防治方案
    @TableField("thing_scheme")
    private String thingScheme;
    //专家建议
    @TableField("advice")
    private String advice;
    //专家会商集合
    @TableField(exist = false)
    private List<ConferBean> list = new ArrayList<>();

    public ThingBean() {
    }

    public ThingBean(String thingName, String thingPic, String thingType, String thingStage, String thingDescription, String thingChannel, String areaName, String className, String thingLoss, String thingArea, String thingScheme) {
        this.thingName = thingName;
        this.thingPic = thingPic;
        this.thingType = thingType;
        this.thingStage = thingStage;
        this.thingDescription = thingDescription;
        this.thingChannel = thingChannel;
        this.areaName = areaName;
        this.className = className;
        this.thingLoss = thingLoss;
        this.thingArea = thingArea;
        this.thingScheme = thingScheme;
    }

    public Integer getThingId() {
        return thingId;
    }

    public void setThingId(Integer thingId) {
        this.thingId = thingId;
    }

    public String getThingName() {
        return thingName;
    }

    public void setThingName(String thingName) {
        this.thingName = thingName;
    }

    public String getThingPic() {
        return thingPic;
    }

    public void setThingPic(String thingPic) {
        this.thingPic = thingPic;
    }

    public LocalDate getThingDate() {
        return thingDate;
    }

    public void setThingDate(LocalDate thingDate) {
        this.thingDate = thingDate;
    }

    public String getThingType() {
        return thingType;
    }

    public void setThingType(String thingType) {
        this.thingType = thingType;
    }

    public String getThingStage() {
        return thingStage;
    }

    public void setThingStage(String thingStage) {
        this.thingStage = thingStage;
    }

    public String getThingDescription() {
        return thingDescription;
    }

    public void setThingDescription(String thingDescription) {
        this.thingDescription = thingDescription;
    }

    public String getThingChannel() {
        return thingChannel;
    }

    public void setThingChannel(String thingChannel) {
        this.thingChannel = thingChannel;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getThingLoss() {
        return thingLoss;
    }

    public void setThingLoss(String thingLoss) {
        this.thingLoss = thingLoss;
    }

    public String getThingArea() {
        return thingArea;
    }

    public void setThingArea(String thingArea) {
        this.thingArea = thingArea;
    }

    public String getThingScheme() {
        return thingScheme;
    }

    public void setThingScheme(String thingScheme) {
        this.thingScheme = thingScheme;
    }

    public String getAdvice() {
        return advice;
    }

    public void setAdvice(String advice) {
        this.advice = advice;
    }

    public List<ConferBean> getList() {
        return list;
    }

    public void setList(List<ConferBean> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "ThingBean{" +
                "thingId=" + thingId +
                ", thingName='" + thingName + '\'' +
                ", thingPic='" + thingPic + '\'' +
                ", thingDate=" + thingDate +
                ", thingType='" + thingType + '\'' +
                ", thingStage='" + thingStage + '\'' +
                ", thingDescription='" + thingDescription + '\'' +
                ", thingChannel='" + thingChannel + '\'' +
                ", areaName='" + areaName + '\'' +
                ", className='" + className + '\'' +
                ", thingLoss='" + thingLoss + '\'' +
                ", thingArea='" + thingArea + '\'' +
                ", thingScheme='" + thingScheme + '\'' +
                ", advice='" + advice + '\'' +
                ", list=" + list +
                '}';
    }
}
